package cn.itchao.example.member.rest;

import cn.itchao.example.goods.domain.Goods;
import cn.itchao.exmaple.base.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("${goods.application.name}")
public interface GoodsRestService {

    @GetMapping(value = "/goods/{id}")
    ApiResponse<Goods> findGoodsById(@PathVariable("id") Long id);
}
